
#include <string>
#include <vector>

using namespace std;

#include "Expr.h"

Expr::Expr (unsigned int exprType, char *data) {
 type = exprType;
 value = data;
}

Expr::Expr (unsigned int exprType, unsigned int op, Expr *left, Expr *right) {
 type = exprType;
 operation = op;

 exprList.push_back (left);
 
 if (right != NULL) {
  exprList.push_back (right);
 }
}

void Expr::appendExpr (Expr *expr) {
 exprList.push_back (expr);
}
